package CrowdCounting.RunnableTask.CrowdCountingTask;

import CrowdCounting.Model.CrowdCounting.CrowdCountingShow;

public class CrowdCountingTask implements Runnable {
    private String crowdImageRootPath;
    private String warningImageRootPath;
    private int showFramWidth;
    private int showFramHeigth;

    public CrowdCountingTask(String imageRootPath){
        this.crowdImageRootPath = imageRootPath;
        showFramHeigth = 1000;
        showFramWidth = 1000;
    }

    public CrowdCountingTask(String crowdImageRootPath, String warningImageRootPath) {
        this.crowdImageRootPath = crowdImageRootPath;
        this.warningImageRootPath = warningImageRootPath;
        showFramHeigth = 1000;
        showFramWidth = 1000;
    }

    public int getShowFramWidth() {
        return showFramWidth;
    }

    public void setShowFramWidth(int showFramWidth) {
        this.showFramWidth = showFramWidth;
    }

    public int getShowFramHeigth() {
        return showFramHeigth;
    }

    public void setShowFramHeigth(int showFramHeigth) {
        this.showFramHeigth = showFramHeigth;
    }

    @Override
    public void run() {
        CrowdCountingShow crowdCounting = new CrowdCountingShow(crowdImageRootPath, warningImageRootPath, showFramWidth, showFramHeigth);
        crowdCounting.showCrowdCounting();
    }
}
